package swapper.facade;

import swapper.model.dao.StatusDao;
import java.util.List;

/**
 *
 * @author Valentino
 */
public class StatusFacade implements IFacade {

    private StatusDao statusdao;

    public void setStatusDao(StatusDao statusdao) {
        this.statusdao = statusdao;
    }

    @Override
    public Object addNew(Object obj) {
        return statusdao.addNew(obj);
    }

    @Override
    public void delete(Object obj) {
        statusdao.delete(obj);
    }

    @Override
    public void update(Object obj) {
        statusdao.update(obj);
    }

    @Override
    public List<Object> listAll() {
        return statusdao.listAll();
    }

    @Override
    public Object findByCod(Long codigo) {
        return statusdao.findByCod(codigo);
    }

    @Override
    public List<Object> findByName(String name) {
        return statusdao.findByName(name);
    }
}
